package com.example.demo;

import com.sun.org.apache.xml.internal.utils.Hashtree2Node;
//import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/webapi")
public class MyCongroller {
    @Autowired
    TestClass  testClass;
    @Autowired
    MyClass myClass;
    @RequestMapping("/myname")
    @ResponseBody
    public Object myname(@RequestBody Map<String, Object> map)
    {
        HashMap<String, Object> map1 = new HashMap<>();

       TestClass testClass = new TestClass();
        map1.put("mynmae", "name10");
        return map1;
    }
}
